
public class NodeFactory extends aNodeFactory {

	private NodeFactory(){}
	
	static aNodeFactory instance(){
		if(instance==null){
			instance=new NodeFactory();
		}
		return instance;
	}
	
	Node createNode(int bias) {
		return new Node(bias);
	}

	HiddenNode createHiddenNode(int bias) {
		return new HiddenNode(bias);
	}
	
}
